package design.graduation.novelsystem.constant;

/**
 * @author: 洪少尉
 * @Date: 2020/4/11 13:48
 * @Description: 常量
 */
public class Constant {
	/**
	 * 状态码
	 * 200:成功
	 * -1:失败
	 */
	public static final Integer SUCCESS_CODE = 200;
	public static final Integer ERROR_CODE = -1;
	/**
	 * 用户类型
	 * 0:超级管理员
	 * 1:普通管理员
	 */
	public static final Integer USER_TYPE_SUPER=0;
	public static final Integer USER_TYPE_NORMAL=1;


	/**
	 * 可用类型
	 */
	public static final Integer AVAILABLE_TRUE=1;
	public static final Integer AVAILABLE_FALSE=0;

	/**
	 * 权限类型
	 */
	public static final String MENU_TYPE_TOP="topmenu";
	public static final String MENU_TYPE_LEFT="leftmenu";
	public static final String MENU_TYPE_PERMISSION="permission";

	/**
	 * 创建系统用户默认密码
	 */
	public static final String DEFAULT_PASSWORD = "123456";
	/**
	 * 创建系统用户默认头像
	 */
	public static final String DEFAULT_HEAD_IMAGE_PATH = "group1/M00/00/00/rBpNll6YYfOAOo-9AACn61s6IpU65.jpeg";
	/**
	 * 默认加密次数
	 */
	public static final Integer DEFAULT_HASHITERATIONS = 2;
	/**
	 * 默认小说下载路径
	 */
	public static final String DEFAULT_LOCAL_SAVE_ADDR = "/root/download/";
	/**
	 * 默认解压路径
	 */
	public static final String DEFAULT_UNRAR_ADDR = "/root/txt/";
	/**
	 * 上架状态
	 */
	public static final Integer STATUS_FALSE = 0;
	public static final Integer STATUS_TRUE = 1;
	/**
	 * 下载状态
	 */
	public static final Integer DOWNLOAD_SUCCESS = 1;


}
